﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hexa.Core.Domain;

namespace Hexa.QuestionEngine.Domain
{
    [Serializable]
    public class ContactSurvey : AuditableEntity<ContactSurvey>
    {
        public ContactSurvey()
        {
            _contactSurveyAnswers = new List<ContactSurveyAnswer>();
        }

        public virtual Contact Contact { get; set; }

        public virtual Domain.Survey SurveyId { get; set; }

        public virtual DateTime StartedOn { get; set; }

        public virtual DateTime CompletedOn { get; set; }

        private IList<ContactSurveyAnswer> _contactSurveyAnswers;

        public virtual IList<ContactSurveyAnswer> ContactSurveyAnswers
        {
            get { return _contactSurveyAnswers; }
        }
    }
}
